<template>
  <div class="dashboard-container">
    <p v-if="this.$store.state.name=='admin'">欢迎管理员 <strong>{{this.$store.state.name}}</strong>登录</p>
    <p v-else>欢迎用户 <strong>{{this.$store.state.name}}</strong>登录</p>

    <img src="@/assets/1.jpg">
  </div>
</template>

<script>

export default {
  name: 'Dashboard',
}
</script>

<style lang="scss" scoped>
.dashboard {
  &-container {
    margin: 30px;
  }
  &-text {
    font-size: 30px;
    line-height: 46px;
  }
}
</style>
